/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hu.bme.j2ee.v37zen.util;

import java.util.EnumSet;

/**
 *
 * @author Kiss Dániel
 */
public enum Role {
    
    
    USER,
    ADMIN;
    
    
    public static final EnumSet<Role> EMPTY_SET = EnumSet.noneOf(Role.class);
    public static final EnumSet<Role> SET_of_ALL_ROLES = EnumSet.allOf(Role.class);
    public static final EnumSet<Role> SET_of_USER_ONLY = EnumSet.of(USER);
    public static final EnumSet<Role> SET_of_ADMIN_ONLY = EnumSet.of(ADMIN);
    public static final EnumSet<Role> SET_of_USDER_AND_ADMIN = EnumSet.of(USER,ADMIN);
    
}
